using Mathmall.Administration.Models;
using Mathmall.Administration.Vo;

namespace Mathmall.Administration.Service;

public interface IRoleMenuService
{
    /// <summary>
    /// 查询角色已有的权限
    /// </summary>
    /// <param name="roleId"></param>
    /// <returns></returns>
    Task<List<int>> GetRolePossessedMenuIds(int roleId);

    /// <summary>
    /// 为角色添加权限
    /// </summary>
    /// <param name="roleMenuVo"></param>
    /// <returns></returns>
    Task<int> AddRoleMenuAsync(RoleMenuVo roleMenuVo);

    /// <summary>
    /// 删除角色对应的权限
    /// </summary>
    /// <param name="roleId"></param>
    /// <returns></returns>
    Task<int> DeleteRoleMenu(int roleId);
}